function setUser(value) {
  return uni.setStorageSync('WHuserInfo', value)
}
function getUser() {
  return uni.getStorageSync('WHuserInfo')
}
function setToken(value) {
  return uni.setStorageSync('WHuserToken', value)
}
function getToken() {
  return uni.getStorageSync('WHuserToken')
}

//移除
function del(key) {
  return uni.removeStorageSync(key)
}
//清空
function clear() {
  return uni.clearStorageSync()
}

export { setUser, getUser, setToken, getToken, del, clear }
